package com.yyge.controller.front.sms.req;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Getter
@Setter
@ToString
public class CodeReq {
    @NotBlank(message = "验证码不能为空")
    private  String code;

    @NotBlank(message = "联系人手机号不能为空")
    @Pattern(regexp = "^0?(13|15|17|18|14|19)[0-9]{9}$",message="手机号码格式不正确，只支持13|15|17|18|14|19")
    private String phone;
}
